package errors

import (
	"code.gitea.io/gitea/models/repo"
	"code.gitea.io/gitea/models/user"
	"fmt"
)

type ErrDevcontainerNotFound struct {
	Actor      *user.User
	Repository *repo.Repository
}

func (err ErrDevcontainerNotFound) Error() string {
	return fmt.Sprintf("DevContainer NOT found in repo '%s'(repoId = %d) of user '%s'(userId = %d)",
		err.Repository.Name, err.Repository.ID, err.Actor.Name, err.Actor.ID)
}
